﻿package plugin.lianzhiexp
{
    import com.core.*;
    import com.sh.game.control.*;

    public class LianzhiexpControl extends ModuleControl
    {

        public function LianzhiexpControl(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function update(param1:Obproxy, param2:ProxyChange) : void
        {
            if (param1.getName() == "lianzhiexp")
            {
                if (param2.property == "getlianzhitimes")
                {
                    this.target.lianzhitimes(param2.newvalue);
                }
                if (param2.property == "Countcost")
                {
                    this.target.Countmoney(param2.newvalue);
                }
                if (param2.property == "CountcostSucceed")
                {
                    this.target.Succeed(param2.newvalue);
                }
                if (param2.property == "infotimes")
                {
                    this.target.inittimes();
                }
                if (param2.property == "UpdataEXP")
                {
                    this.target.Upexp();
                }
                if (param2.property == "huojiangmsg")
                {
                    this.target.huojiangmsg(param2.newvalue);
                }
            }
            return;
        }// end function

    }
}
